Repository navigation
fix(codedb-bridge): parseDaemonUrl errors never echo the raw daemon URL (#9829) - #9834
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 52 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex gate disposition (lane code-d, task 16521): the Codex code review on this PR FAILED to run — Codex usage limits reached (the connector's own comments say so); it produced zero findings and zero inline review comments (verified via the PR review-comments API, count 0). There is no undispositioned Codex finding. Merging under the standing criteria: |
Fixes #9829.
parseDaemonUrlinbin/codedb-bridge.mjs(PR #4199) rejected query/fragment/userinfo inCODEDB_DAEMON_URL, but every throw interpolated the raw URL value — and the query/fragment branches also interpolatedurl.search/url.hash. The userinfo rejection therefore printed embedded credentials and a?token=query printed the token, into an error the callerconsole.errors before exit on a stdio MCP server whose stderr lands in host logs.Fix: no branch interpolates the raw value or any parsed URL part. Each error names the rejected component only (invalid URL / non-origin / query / fragment / userinfo) and notes the value is withheld. Rejection behavior is otherwise unchanged — same conditions, same order,
url.originstill returned.Tests: new negative test in
bin/codedb-bridge.test.mjs(#9829) captures the thrown messages for credentialed, token-query, and fragment URLs — plus credentialed values hitting the pre-existing invalid-URL and non-origin branches — and asserts none of the password, username, token, or fragment sentinels appear, while the messages still name their component. Existing #4198 tests keep passing:node --test bin/codedb-bridge.test.mjs— 20 pass, 0 fail.Queue: task 16521 (lane code-d), triaged inline from task/triage to task/small-fix per the packet acceptance.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.